<?php

use think\facade\Route;

Route::rule('login', 'login/index');
Route::rule('/doLogin', 'login/doLogin', 'post');
Route::rule('/logout', 'login/logout', 'post')->middleware([common\middleware\Auth::class]);

Route::rule('/', 'index/index')->middleware([common\middleware\Auth::class]);

Route::rule('/menu', 'menu/getMenu', 'post')->middleware([common\middleware\Auth::class]);

Route::rule('/workorder', 'WorkOrder/index')->middleware([common\middleware\Auth::class]);
Route::rule('api/workorder/page', 'WorkOrder/page', 'get')->middleware([common\middleware\Auth::class]);
